package action.creditapproval;

import java.sql.Timestamp;
import java.util.List;

import model.app.AppRate;
import model.credit.Creditapplyenterprise;
import model.credit.Creditapplypersonal;
import model.creditcheck.Applyopinion;
import model.creditcheck.Applystate;
import model.grant.Customgrant;
import model.security.UsrUserRole;

import service.applycheck.AppRateService;
import service.applycheck.ApplyOpinionService;
import service.applycheck.ApplyStateService;
import service.applycheck.ApplyUserService;
import service.credit.CreditApplyEnterpriseService;
import service.credit.CreditApplyPersonalService;
import service.credit.EnterpriseSearchService;
import service.credit.PersonalSearchService;
import util.Log;
import util.Time;
import vo.CreditCheckBean;
import core.action.BaseAction;
import core.global.Global;
import exception.Exceptions;

public class CreditExamineAction extends BaseAction{
	private String state;
	private int type;
	private List<?> creditExamineBeanList;
	private CreditCheckBean creditCheckBean;
	private List<?> recordList;
	
	
	private List<?> examineUserList;
	private List<UsrUserRole> userList;
	private ApplyUserService applyUserService;
	
	private AppRate appRate;
	
	private Integer applyid;
	private Integer appid;
	private int isCanChange;
	
	
	private List<Integer> isExamine;
	private Integer examinePeople;
	private Integer isDone;
	
	private Integer setcheckstate;
	private String setopinion;
	
	private ApplyStateService applyStateService;
	private CreditApplyPersonalService creditApplyPersonalService;
	private CreditApplyEnterpriseService creditApplyEnterpriseService;
	private ApplyOpinionService applyOpinionService;
	
	
	/*授信信息*/
	private EnterpriseSearchService enterpriseSearchService;
	
	private PersonalSearchService personalSearchService;
	
	private Double canUseMoney;
	private Double applyMoney;
	
	private AppRateService appRateService;
	
	private int searchwhat;
	
	private String searchApplyid;
	
	
	/**
	 * 默认执行，显示等待列表信息
	 * */
	public String execute() throws Exceptions{
		if(this.type == 1){
			this.creditExamineBeanList = this.creditApplyPersonalService.getAllExamineList("wait");
		}else if(this.type == 2){
			this.creditExamineBeanList = this.creditApplyEnterpriseService.getAllExamineList("wait");
		}
		
		//判断是否是主审查人员，以及等待审查信息是否为空
		if(this.creditExamineBeanList != null && this.applyUserService.isExamial(Global.userid())){
			this.examineUserList = this.applyUserService.getUserByRoleId(7);
		}else{
			this.isDone = 2;
		}
		this.searchwhat = 1;
		
		return "success";
	}
	
	/**
	 * 显示根据applyid查询信息
	 * */
	public String searchList() throws Exceptions{
		//处理applyid
		try{
			this.applyid = Integer.parseInt(this.searchApplyid);
		}catch(Exception e){
			this.applyid = Integer.parseInt(this.searchApplyid.substring(3, this.searchApplyid.length()));
		}
		
		if(this.type == 1){
			this.creditExamineBeanList = this.creditApplyPersonalService.getAllAcceptionListByApplyIdAndState(this.applyid, "examine");
		}else if(this.type == 2){
			this.creditExamineBeanList = this.creditApplyEnterpriseService.getAllAcceptionListByApplyIdAndState(this.applyid, "examine");
		}
		
		if(this.creditExamineBeanList != null && this.applyUserService.isExamial(Global.userid())){
			CreditCheckBean creditCheckBean = (CreditCheckBean) creditExamineBeanList.get(0);
			if(creditCheckBean.getApplyState() == 21){
				this.examineUserList = this.applyUserService.getUserByRoleId(7);
			}else{
				this.isDone = 2;
			}
		}else{
			this.isDone = 2;
		}
		return "success";
	}
	
	/**
	 * 显示审查详细信息
	 * */
	public String applyExamine() throws Exceptions{
		if (this.type == 1) {
			creditCheckBean = this.creditApplyPersonalService.getOneBean(applyid);
			if(creditCheckBean != null){
				Customgrant customgrant = this.personalSearchService.getCustomgrantByCustomId(creditCheckBean.getClientid());
				this.canUseMoney = customgrant.getGrantmoney() - customgrant.getUsedmoney();
			}else{
				this.canUseMoney = 0.0;
			}
			
			recordList = this.applyOpinionService.getListAllByApplyId(applyid);
			if (this.isCanChange == 1 || this.isCanChange == 2) {
				this.appRate = this.appRateService.getAppRate();
			}
		} else if (this.type == 2) {
			creditCheckBean = this.creditApplyEnterpriseService.getOneBean(applyid);
			if(creditCheckBean != null){
				Customgrant customgrant = this.enterpriseSearchService.getCustomgrantByCustomId(creditCheckBean.getClientid());
				this.canUseMoney = customgrant.getGrantmoney() - customgrant.getUsedmoney();
			}else{
				this.canUseMoney = 0.0;
			}
			recordList = this.applyOpinionService.getListAllByApplyId(applyid);
			if (this.isCanChange == 1 || this.isCanChange == 2) {
				this.appRate = this.appRateService.getAppRate();
			}
		}
		return "detail";
	}
	/*设定审查人员*/
	public String getExamine() throws Exceptions{
		for(Integer aid : this.isExamine){
				try {
					Applystate as = this.applyStateService.getOneApplyStateByIdAndType(aid, "B");
					as.setManagerid(this.examinePeople);
					this.applyStateService.save(as);
					//int count = this.applyStateService.findApplyStateByApplyId(aid);
					//this.applyStateService.delAllRecordByApplyidAndType(aid, "B", this.type);
					//this.applyStateService.saveAllByManagerId(aid, this.examinePeople, "B", this.type);
				} catch (Exception e) {
					throw new Exceptions("选择审查人员过程出现异常！");
				}
		}
		Log.save("插入", "设定审查人员，申请记录为：" + isExamine + "，审查人员为：" + examinePeople, "操作人员为：" + Global.userid());
		MessageJump("审查人员设定完成", "creditExamineAction?type=" + this.type);
		return "message";
	}
	
	/**
	 * 个人调查信息保存
	 * */
	public int doExaminePersonal() throws Exceptions{
		String result = "";
		Timestamp nowTime = Time.CurrentTimestamp();
		int count;
		Creditapplypersonal _creditapplypersonal = this.creditApplyPersonalService.getOneById(appid);
		count = _creditapplypersonal.getCount();
		Applystate _applystate = null;
		if(applyStateService.getOneApplyStateByIdAndType(appid, "B") != null){
			_applystate = applyStateService.getOneApplyStateByIdAndType(appid, "B");
			_applystate.setCheckopinion(setopinion);
			_applystate.setCheckstate(setcheckstate);
			_applystate.setChecktime(nowTime);
		}else{
			throw new Exceptions("信息为空!");
		}
		try {
			if(this.setcheckstate == 1){
				result = "同意";
				_creditapplypersonal.setCreditstate(31);
				_creditapplypersonal.setIsdone(2);
			}else if(this.setcheckstate == 2){
				result = "不同意";
				if(_creditapplypersonal.getCount() >= 2){           /*不同意次数超过两次，申请作废*/
					_creditapplypersonal.setCreditstate(40);
				}else{
					_creditapplypersonal.setCreditstate(12);
					_creditapplypersonal.setIsdone(2);
				}
			}else if(this.setcheckstate == 3){
				result = "回退";
				_creditapplypersonal.setCreditstate(12);
			}
			creditApplyPersonalService.save(_creditapplypersonal);
			applyStateService.save(_applystate);
			this.applyOpinionService.save(new Applyopinion(appid, Global.userid().intValue(), null, "审查", setopinion, result, nowTime, this.type, count));
			Log.save("插入", "个人审查的申请单号码为：" + _creditapplypersonal.getApplyid(), "操作人员为：" + Global.userid());
		} catch (Exception e) {
			throw new Exceptions("在执行过程中出现了错误了!");
		}
		return count;
	}
	
	/**
	 * 企业调查信息保存
	 * */
	public int doExamineEnterprise() throws Exceptions{
		String result = "";
		Timestamp nowTime = Time.CurrentTimestamp();
		int count;
		Creditapplyenterprise _creditapplyenterprise = this.creditApplyEnterpriseService.getOneById(appid);
		count = _creditapplyenterprise.getCount();
		Applystate _applystate = applyStateService.getOneApplyStateByIdAndType(appid, "B");
		try {
			if(this.setcheckstate == 1){
				result = "同意";
				_creditapplyenterprise.setCreditstate(31);
				_creditapplyenterprise.setIsdone(2);
			}else if(this.setcheckstate == 2){
				result = "不同意";
				if(_creditapplyenterprise.getCount() >= 2){         /*不同意次数超过两次，申请作废*/
					_creditapplyenterprise.setCreditstate(40);
				}else{
					_creditapplyenterprise.setCreditstate(12);
					_creditapplyenterprise.setIsdone(2);
				}
			}
			else if(this.setcheckstate == 3){
				result = "回退";
				_creditapplyenterprise.setCreditstate(12);
			}
			_applystate.setCheckstate(setcheckstate);
			_applystate.setCheckopinion(setopinion);
			_applystate.setChecktime(nowTime);
			creditApplyEnterpriseService.save(_creditapplyenterprise);
			applyStateService.save(_applystate);
			this.applyOpinionService.save(new Applyopinion(appid, Global.userid().intValue(), null, "审查", setopinion, result, nowTime, 2, count));
			Log.save("插入", "企业审查的申请单号码为：" + _creditapplyenterprise.getApplyid(), "操作人员为：" + Global.userid());
		} catch (Exception e) {
			throw new Exceptions("在执行过程中出现了错误了!");
		}
		return count;
	}
	
	public String doExamine() throws Exception{
		if(applyMoney > canUseMoney){
			throw new Exceptions("申请金额大于授信可用金额！请重新授信！");
		}
		int count = 1;
		if(this.type == 1){
			count = this.doExaminePersonal();
		}else if(this.type == 2){
			count = this.doExamineEnterprise();
		}else{
			throw new Exceptions("操作错误，请正确操作!");
		}
		
		/*审查同意，向记录中预插入审批人的信息.根据角色的编号来插入*/
		if(this.setcheckstate == 1){
			this.userList = this.applyUserService.getListByRoleId(3);        
			for(UsrUserRole user : userList){
				applyStateService.saveAllByManagerId(appid, user.getUsrUser().getUserid().intValue(), "C", this.type, count);
			}
		}
		MessageJump("信息审查完成", "creditExamineAction?type=" + this.type);
		return "message";
	}
	
	/*public String doExamine() throws Exception{
		String result = "";
		Timestamp nowTime = Time.CurrentTimestamp();
		int count = 0;
			if(this.type == 1){
				Creditapplypersonal _creditapplypersonal = this.creditApplyPersonalService.getOneById(appid);
				count = _creditapplypersonal.getCount();
				Applystate _applystate = null;
				if(applyStateService.getOneApplyStateByIdAndType(appid, "B") != null){
					_applystate = applyStateService.getOneApplyStateByIdAndType(appid, "B");
					_applystate.setCheckopinion(setopinion);
					_applystate.setCheckstate(setcheckstate);
					_applystate.setChecktime(nowTime);
				}else{
					throw new Exceptions("信息为空!");
				}
				try {
					if(this.setcheckstate == 1){
						result = "同意";
						_creditapplypersonal.setCreditstate(31);
						_creditapplypersonal.setIsdone(2);
					}else if(this.setcheckstate == 2){
						result = "不同意";
						if(_creditapplypersonal.getCount() >= 2){
							_creditapplypersonal.setCreditstate(40);
						}else{
							_creditapplypersonal.setCreditstate(12);
							_creditapplypersonal.setIsdone(2);
						}
					}else if(this.setcheckstate == 3){
						result = "回退";
						_creditapplypersonal.setCreditstate(12);
					}
					creditApplyPersonalService.save(_creditapplypersonal);
					applyStateService.save(_applystate);
					this.applyOpinionService.save(new Applyopinion(appid, Global.userid().intValue(), null, "审查", setopinion, result, nowTime, 1, count));
				} catch (Exception e) {
					throw new Exceptions("在执行过程中出现了错误了!");
				}
			}else if(this.type == 2){
				Creditapplyenterprise _creditapplyenterprise = this.creditApplyEnterpriseService.getOneById(appid);
				count = _creditapplyenterprise.getCount();
				Applystate _applystate = applyStateService.getOneApplyStateByIdAndType(appid, "B");
				try {
					if(this.setcheckstate == 1){
						result = "同意";
						_creditapplyenterprise.setCreditstate(31);
						_creditapplyenterprise.setIsdone(2);
					}else if(this.setcheckstate == 2){
						result = "不同意";
						if(_creditapplyenterprise.getCount() >= 2){
							_creditapplyenterprise.setCreditstate(40);
						}else{
							_creditapplyenterprise.setCreditstate(12);
							_creditapplyenterprise.setIsdone(2);
						}
					}
					else if(this.setcheckstate == 3){
						result = "回退";
						_creditapplyenterprise.setCreditstate(12);
					}
					_applystate.setCheckstate(setcheckstate);
					_applystate.setCheckopinion(setopinion);
					_applystate.setChecktime(nowTime);
					creditApplyEnterpriseService.save(_creditapplyenterprise);
					applyStateService.save(_applystate);
					this.applyOpinionService.save(new Applyopinion(appid, Global.userid().intValue(), null, "审查", setopinion, result, nowTime, 2, count));
					
				} catch (Exception e) {
					throw new Exceptions("在执行过程中出现了错误了!");
				}
			}
		
		if(this.setcheckstate == 1){
			this.userList = this.applyUserService.getListByRoleId(3);
			for(UsrUserRole user : userList){
				applyStateService.saveAllByManagerId(appid, user.getUsrUser().getUserid().intValue(), "C", this.type, count);
			}
		}
		MessageJump("信息审查完成", "creditExamineAction?type=" + this.type);
		return "message";
	}*/
	
	/*public String doExamine() throws Exception{
		//String[] ps = Tool.splitArrayHtml(this.approvePeople);
		String result = "";
		Timestamp nowTime = Time.CurrentTimestamp();
		if(Global.userid() == 1){ //判断是否是主审查人员操作
			if(this.type == 1){
				Creditapplypersonal _creditapplypersonal = this.creditApplyPersonalService.getOneById(appid);
				if(this.setcheckstate == 1){
					result = "同意";
					_creditapplypersonal.setCreditstate(31);
					_creditapplypersonal.setIsdone(2);
					
				}else if(this.setcheckstate == 2){
					result = "不同意";
					_creditapplypersonal.setCreditstate(12);
					_creditapplypersonal.setIsdone(2);
				}else if(this.setcheckstate == 3){
					result = "回退";
					_creditapplypersonal.setCreditstate(12);
				}
				creditApplyPersonalService.save(_creditapplypersonal);
			}else if(this.type == 2){
				Creditapplyenterprise _creditapplyenterprise = this.creditApplyEnterpriseService.getOneById(appid);
				if(this.setcheckstate == 1){
					result = "同意";
					_creditapplyenterprise.setCreditstate(31);
					_creditapplyenterprise.setIsdone(2);
					
				}else if(this.setcheckstate == 2){
					result = "不同意";
					_creditapplyenterprise.setCreditstate(12);
					_creditapplyenterprise.setIsdone(2);
				}else if(this.setcheckstate == 3){
					result = "回退";
					_creditapplyenterprise.setCreditstate(12);
				}
				creditApplyEnterpriseService.save(_creditapplyenterprise);
			}
			if(this.setcheckstate != 3){
			Applystate _applystate = new Applystate();
			_applystate.setApplyid(appid);
			_applystate.setManagerid(Global.userid().intValue());
			_applystate.setCheckopinion(setopinion);
			_applystate.setCheckstate(setcheckstate);
			_applystate.setChecktime(nowTime);
			_applystate.setChecktype("B");
			_applystate.setApplytype(this.type);
			applyStateService.save(_applystate);
			}else{
				Applystate _applystate = this.applyStateService.getOneApplyStateByIdAndType(appid, "B");
				_applystate.setCheckstate(setcheckstate);
				_applystate.setChecktime(nowTime);
				_applystate.setCheckopinion(setopinion);
				applyStateService.save(_applystate);
			}
			this.applyOpinionService.save(new Applyopinion(appid, Global.userid().intValue(), null, "审查", setopinion, result, nowTime, this.type));
		}else{
			if(this.type == 1){
				Creditapplypersonal _creditapplypersonal = this.creditApplyPersonalService.getOneById(appid);
				Applystate _applystate = null;
				if(applyStateService.getOneApplyStateByIdAndType(applyid, "B") != null){
					_applystate = applyStateService.getOneApplyStateByIdAndType(applyid, "B");
					_applystate.setCheckopinion(setopinion);
					_applystate.setCheckstate(setcheckstate);
					_applystate.setChecktime(nowTime);
				}
				try {
					if(this.setcheckstate == 1){
						result = "同意";
						_creditapplypersonal.setCreditstate(31);
						_creditapplypersonal.setIsdone(2);
					}else if(this.setcheckstate == 2){
						result = "不同意";
						_creditapplypersonal.setCreditstate(12);
						_creditapplypersonal.setIsdone(2);
					}else if(this.setcheckstate == 3){
						result = "回退";
						_creditapplypersonal.setCreditstate(12);
					}
					creditApplyPersonalService.save(_creditapplypersonal);
					applyStateService.save(_applystate);
					this.applyOpinionService.save(new Applyopinion(appid, Global.userid().intValue(), null, "审查", setopinion, result, nowTime, 1));
				} catch (Exception e) {
					throw new Exceptions("在执行过程中出现了错误了!");
				}
			}else if(this.type == 2){
				Creditapplyenterprise _creditapplyenterprise = this.creditApplyEnterpriseService.getOneById(appid);
				Applystate _applystate = applyStateService.getOneApplyStateByIdAndType(appid, "A");
				try {
					if(this.setcheckstate == 1){
						result = "同意";
						_creditapplyenterprise.setCreditstate(31);
						_creditapplyenterprise.setIsdone(2);
					}else if(this.setcheckstate == 2){
						result = "不同意";
						_creditapplyenterprise.setCreditstate(12);
						_creditapplyenterprise.setIsdone(2);
					}
					else if(this.setcheckstate == 3){
						result = "回退";
						_creditapplyenterprise.setCreditstate(12);
					}
					_applystate.setCheckstate(setcheckstate);
					_applystate.setCheckopinion(setopinion);
					_applystate.setChecktime(nowTime);
					creditApplyEnterpriseService.save(_creditapplyenterprise);
					applyStateService.save(_applystate);
					this.applyOpinionService.save(new Applyopinion(appid, Global.userid().intValue(), null, "审查", setopinion, result, nowTime, 2));
					
				} catch (Exception e) {
					throw new Exceptions("在执行过程中出现了错误了!");
				}
			}
		}
		
		if(this.setcheckstate == 1){
			this.userList = this.applyUserService.getListByRoleId(3);
			for(UsrUserRole user : userList){
				applyStateService.saveAllByManagerId(appid, user.getUsrUser().getUserid().intValue(), "C", this.type);
			}
			for(int i = 0; i < ps.length; i++){
				applyStateService.saveAllByManagerId(appid, Integer.parseInt(ps[i]), "C", this.type);
			}
		}
		MessageJump("信息审查完成", "creditExamineAction?type=" + this.type);
		return "message";
	}*/
	
	/**
	 * 显示等待
	 * */
	public String cdw() throws Exceptions{
		if(this.type == 1){
			this.creditExamineBeanList = this.creditApplyPersonalService.getAllExamineList("wait");
		}else if(this.type == 2){
			this.creditExamineBeanList = this.creditApplyEnterpriseService.getAllExamineList("wait");
		}
		
		if(this.creditExamineBeanList == null && this.applyUserService.isExamial(Global.userid())){
			this.isDone = 2;
		}else{
			this.examineUserList = this.applyUserService.getUserByRoleId(7);
			//System.out.println(examineUserList.toString());
		}
		this.searchwhat = 1;
		//this.examineUserList = this.applyUserService.getUserByRoleId(7);
		return "success";
	}
	
	/**
	 * 显示完成
	 * */
	public String cdd() throws Exceptions{
		if(this.type == 1){
			this.creditExamineBeanList = this.creditApplyPersonalService.getAllExamineList("doing");
		}else if(this.type == 2){
			this.creditExamineBeanList = this.creditApplyEnterpriseService.getAllExamineList("doing");
		}
		this.searchwhat = 2;
		this.isDone = 2;
		return "success";
	}
	/**
	 * 显示不同意
	 * */
	public String cdb() throws Exceptions{
		if(this.type == 1){
			this.creditExamineBeanList = this.creditApplyPersonalService.getAllExamineList("back");
		}else if(this.type == 2){
			this.creditExamineBeanList = this.creditApplyEnterpriseService.getAllExamineList("back");
		}
		this.searchwhat = 3;
		this.isDone = 2;
		return "success";
	}
	/**
	 * 显示返回
	 * */
	public String cdr() throws Exceptions{
		if(this.type == 1){
			this.creditExamineBeanList = this.creditApplyPersonalService.getAllExamineList("returnBack");
		}else if(this.type == 2){
			this.creditExamineBeanList = this.creditApplyEnterpriseService.getAllExamineList("returnBack");
		}
		this.searchwhat = 4;
		this.isDone = 2;
		return "success";
	}
	
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public List<?> getCreditExamineBeanList() {
		return creditExamineBeanList;
	}

	public void setCreditExamineBeanList(List<?> creditExamineBeanList) {
		this.creditExamineBeanList = creditExamineBeanList;
	}

	public CreditCheckBean getCreditCheckBean() {
		return creditCheckBean;
	}
	public void setCreditCheckBean(CreditCheckBean creditCheckBean) {
		this.creditCheckBean = creditCheckBean;
	}
	public ApplyStateService getApplyStateService() {
		return applyStateService;
	}
	public void setApplyStateService(ApplyStateService applyStateService) {
		this.applyStateService = applyStateService;
	}
	public CreditApplyPersonalService getCreditApplyPersonalService() {
		return creditApplyPersonalService;
	}
	public void setCreditApplyPersonalService(
			CreditApplyPersonalService creditApplyPersonalService) {
		this.creditApplyPersonalService = creditApplyPersonalService;
	}
	public CreditApplyEnterpriseService getCreditApplyEnterpriseService() {
		return creditApplyEnterpriseService;
	}
	public void setCreditApplyEnterpriseService(
			CreditApplyEnterpriseService creditApplyEnterpriseService) {
		this.creditApplyEnterpriseService = creditApplyEnterpriseService;
	}

	public List<?> getRecordList() {
		return recordList;
	}

	public void setRecordList(List<?> recordList) {
		this.recordList = recordList;
	}

	public ApplyOpinionService getApplyOpinionService() {
		return applyOpinionService;
	}

	public void setApplyOpinionService(ApplyOpinionService applyOpinionService) {
		this.applyOpinionService = applyOpinionService;
	}

	public int getIsCanChange() {
		return isCanChange;
	}

	public void setIsCanChange(int isCanChange) {
		this.isCanChange = isCanChange;
	}

	public AppRate getAppRate() {
		return appRate;
	}

	public void setAppRate(AppRate appRate) {
		this.appRate = appRate;
	}

	public AppRateService getAppRateService() {
		return appRateService;
	}

	public void setAppRateService(AppRateService appRateService) {
		this.appRateService = appRateService;
	}

	public Integer getApplyid() {
		return applyid;
	}

	public void setApplyid(Integer applyid) {
		this.applyid = applyid;
	}

	public Integer getAppid() {
		return appid;
	}

	public void setAppid(Integer appid) {
		this.appid = appid;
	}

	public Integer getSetcheckstate() {
		return setcheckstate;
	}

	public void setSetcheckstate(Integer setcheckstate) {
		this.setcheckstate = setcheckstate;
	}

	public String getSetopinion() {
		return setopinion;
	}

	public void setSetopinion(String setopinion) {
		this.setopinion = setopinion;
	}

	/*public String getApprovePeople() {
		return approvePeople;
	}

	public void setApprovePeople(String approvePeople) {
		this.approvePeople = approvePeople;
	}*/

	public List<UsrUserRole> getUserList() {
		return userList;
	}

	public void setUserList(List<UsrUserRole> userList) {
		this.userList = userList;
	}

	public ApplyUserService getApplyUserService() {
		return applyUserService;
	}

	public void setApplyUserService(ApplyUserService applyUserService) {
		this.applyUserService = applyUserService;
	}

	public List<Integer> getIsExamine() {
		return isExamine;
	}

	public void setIsExamine(List<Integer> isExamine) {
		this.isExamine = isExamine;
	}

	public Integer getExaminePeople() {
		return examinePeople;
	}

	public void setExaminePeople(Integer examinePeople) {
		this.examinePeople = examinePeople;
	}

	public Integer getIsDone() {
		return isDone;
	}

	public void setIsDone(Integer isDone) {
		this.isDone = isDone;
	}

	public List<?> getExamineUserList() {
		return examineUserList;
	}

	public void setExamineUserList(List<?> examineUserList) {
		this.examineUserList = examineUserList;
	}

	public EnterpriseSearchService getEnterpriseSearchService() {
		return enterpriseSearchService;
	}

	public void setEnterpriseSearchService(
			EnterpriseSearchService enterpriseSearchService) {
		this.enterpriseSearchService = enterpriseSearchService;
	}

	public PersonalSearchService getPersonalSearchService() {
		return personalSearchService;
	}

	public void setPersonalSearchService(PersonalSearchService personalSearchService) {
		this.personalSearchService = personalSearchService;
	}

	public Double getCanUseMoney() {
		return canUseMoney;
	}

	public void setCanUseMoney(Double canUseMoney) {
		this.canUseMoney = canUseMoney;
	}

	public Double getApplyMoney() {
		return applyMoney;
	}

	public void setApplyMoney(Double applyMoney) {
		this.applyMoney = applyMoney;
	}

	public int getSearchwhat() {
		return searchwhat;
	}

	public void setSearchwhat(int searchwhat) {
		this.searchwhat = searchwhat;
	}

	public String getSearchApplyid() {
		return searchApplyid;
	}

	public void setSearchApplyid(String searchApplyid) {
		this.searchApplyid = searchApplyid;
	}

}
